﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ovvio.Business;
using Ovvio.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using Ovvio.Web.Core;

namespace Ovvio.Web.Areas.Admin.Models
{
    public class CategoryModel : BaseModel<ProductCategory>
    {
        [ScaffoldColumn(false)]
        public int Id { get { return Entity.Id; } set { Entity.Id = value; } }
        
        [Required]
        [DisplayName("Category")]
        public string CategoryTitle { get { return Entity.Category; } set { Entity.Category = value; } }

        [Required]
        public string Description { get { return Entity.Description; } set { Entity.Description = value; } }

    }
}
